export enum CouponType {
      Discount = 0, // 折扣券
      Cash = 1,       // 现金券
      Reduction = 2,  // 满减券
      Duration = 3,   // 时长券
      Free = 4,       // 免费券
      Gift = 5,       // 赠品券
      Special = 6,    // 特价券
    }

    export enum ApplicableType {
      All = 0,        // 全场通用
      Store = 1,      // 指定门店
      Venue = 2,      // 指定场地
    }

    export interface Coupon {
      id: number;
      name: string;
      type: CouponType;
      status: number; // 0: 禁用, 1: 启用
      description: string;
      total_count: number; // 发行数量, 0为不限量
      issued_count: number;
      used_count: number;
      per_limit: number; // 每人限领
      valid_days: number; // 有效期天数

      // Type-specific fields
      value?: number; // 现金/满减/特价金额 (分)
      discount?: number; // 折扣 (e.g., 85 for 8.5折)
      min_consume?: number; // 使用门槛 (分)
      duration?: number; // 时长 (分钟)

      // Time constraints
      available_weekdays?: string; // e.g., "1,2,3"
      available_times?: string; // JSON string of time ranges, e.g., [{"start":"09:00","end":"12:00"}]

      // Applicability
      applicable_type: ApplicableType;
      applicable_ids?: string; // e.g., "1,2,3"

      created_at: number;
      updated_at: number;
    }

    export interface CouponListData {
      list: Coupon[];
      total: number;
    }

    export interface CouponQuery {
      page?: number;
      pageSize?: number;
      keyword?: string;
      type?: CouponType;
      status?: number;
    }